<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatedGoodsBuysTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('goods_buys', function (Blueprint $table) {
            $table->increments('id');

            $table->integer('goods_id')->comment('商品id');

            $table->text('content')->comment('购买信息');

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('goods_buys');
    }

}
